package org.jsola.hr.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.validator.constraints.Length;
import org.jsola.core.dto.BaseDTO;

import java.util.Date;
import javax.validation.constraints.NotNull;

import static org.jsola.core.example.BaseExample.E_ID;
import static org.jsola.core.example.BaseExample.M_ID_NOT_NULL;
import static org.jsola.core.example.BaseExample.N_ID;
import static org.jsola.hr.example.CompanySaleServerExample.E_COMPANY_ID;
import static org.jsola.hr.example.CompanySaleServerExample.E_IS_FIRST;
import static org.jsola.hr.example.CompanySaleServerExample.E_REMARK;
import static org.jsola.hr.example.CompanySaleServerExample.E_SERVER_BEGIN_TIME;
import static org.jsola.hr.example.CompanySaleServerExample.E_SERVER_END_TIME;
import static org.jsola.hr.example.CompanySaleServerExample.M_COMPANY_ID_MAX;
import static org.jsola.hr.example.CompanySaleServerExample.M_COMPANY_ID_NOT_NULL;
import static org.jsola.hr.example.CompanySaleServerExample.M_REMARK_MAX;
import static org.jsola.hr.example.CompanySaleServerExample.M_SERVER_BEGIN_TIME_NOT_NULL;
import static org.jsola.hr.example.CompanySaleServerExample.M_SERVER_END_TIME_NOT_NULL;
import static org.jsola.hr.example.CompanySaleServerExample.N_COMPANY_ID;
import static org.jsola.hr.example.CompanySaleServerExample.N_IS_FIRST;
import static org.jsola.hr.example.CompanySaleServerExample.N_REMARK;
import static org.jsola.hr.example.CompanySaleServerExample.N_SERVER_BEGIN_TIME;
import static org.jsola.hr.example.CompanySaleServerExample.N_SERVER_END_TIME;

/**
 * 用工单位服务
 *
 * @author zhr
 */
@EqualsAndHashCode(callSuper = true)
@ApiModel(description = "修改【用工单位服务】的参数")
@Data
public class CompanySaleServerUpdateDTO extends BaseDTO {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(notes = N_ID, example = E_ID, required = true)
    @NotNull(message = M_ID_NOT_NULL)
    private String id;

    @ApiModelProperty(notes = N_COMPANY_ID, example = E_COMPANY_ID, required = true)
    @NotNull(message = M_COMPANY_ID_NOT_NULL)
    @Length(max = 32, message = M_COMPANY_ID_MAX)
    private String companyId;

    @ApiModelProperty(notes = N_SERVER_BEGIN_TIME, example = E_SERVER_BEGIN_TIME, required = true)
    @NotNull(message = M_SERVER_BEGIN_TIME_NOT_NULL)
    private Date serverBeginTime;

    @ApiModelProperty(notes = N_SERVER_END_TIME, example = E_SERVER_END_TIME, required = true)
    @NotNull(message = M_SERVER_END_TIME_NOT_NULL)
    private Date serverEndTime;

    @ApiModelProperty(notes = N_IS_FIRST, example = E_IS_FIRST)
    private Boolean isFirst;

    @ApiModelProperty(notes = N_REMARK, example = E_REMARK)
    @Length(max = 255, message = M_REMARK_MAX)
    private String remark;


}

